home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
32
/
jots.zip
/
SCORE.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-03-13
|
977b
|
44 lines
' SCORE.BAS: This module handles the Score box and tabulates the score
' $INCLUDE: 'J.INC'
DIM SHARED Score, ScoreSet(1 TO 20)
DIM SHARED MyBox AS BoxType, TopRow, BotRow, LftCol, RtCol
ScoreDefs:
DATA 100, 95, 90, 85, 80, 75, 70
DATA 65, 60, 55, 50, 45
DATA 40, 40, 40, 40, 35, 35, 35, 35
SUB InitScore
CALL BoxCoords(ScoreBox, MyBox)
TopRow = MyBox.TopRow
BotRow = MyBox.BotRow
LftCol = MyBox.LftCol
RtCol = MyBox.RtCol
RESTORE ScoreDefs
FOR Lp = 1 TO 20
READ ScoreSet(Lp)
NEXT Lp
Score = 0
NormalBox (ScoreBox)
COLOR Normal, Background, Background
LOCATE TopRow + 1, LftCol + 2, 0
PRINT "Score";
LOCATE TopRow + 3, LftCol + 3, 0
PRINT USING "###"; Score;
END SUB
SUB AddToScore (Points)
Score = Score + Points
LOCATE TopRow + 3, LftCol + 3, 0
COLOR Normal, Background, Background
PRINT USING "###"; Score;
END SUB
FUNCTION GuessScore (GuessNumber%)
GuessScore = ScoreSet(GuessNumber%)
END FUNCTION